package com.shahe.GirlsDay;

import android.app.Activity;
import android.content.Intent;
import android.media.Image;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.view.WindowManager;
import android.widget.Button;
import android.widget.ImageButton;
import android.widget.ImageView;

/**
 * Created by Sarah on 5/06/2014.
 */
public class SettingsActivity extends Activity {
    /**
     * Called when the activity is first created.
     */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.settingspage);
        getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);

        final Button homeButton = (Button)findViewById(R.id.btn_home);
        homeButton.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });

        final ImageView image_pf01 = (ImageView )findViewById(R.id.iv_set_pic01);
        final ImageView image_pf02 = (ImageView )findViewById(R.id.iv_set_pic02);
        final ImageView  image_pf03 = (ImageView )findViewById(R.id.iv_set_pic03);
        final ImageView  image_reset = (ImageView )findViewById(R.id.iv_set_pic06);

        image_pf01.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(SettingsActivity.this, SettingsPFActivity.class);
                startActivity(intent);
            }
        });

        image_pf02.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(SettingsActivity.this, SettingsPFActivity.class);
                startActivity(intent);
            }
        });

        image_pf03.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(SettingsActivity.this, SettingsPFActivity.class);
                startActivity(intent);
            }
        });

        image_reset.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(SettingsActivity.this, RegisterActivity.class);
                startActivity(intent);
            }
        });
    }
}
